<?php

/*
|--------------------------------------------------------------------------
| Routes File
|--------------------------------------------------------------------------
|
| Here is where you will register all of the routes in an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/

Route::get('/', function () {
    return view('welcome');
});

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| This route group applies the "web" middleware group to every route
| it contains. The "web" middleware group is defined in your HTTP
| kernel and includes session state, CSRF protection, and more.
|
*/

Route::group(['middleware' => ['web']], function () {
    //
});

Route::group(['prefix'=>'eloquent'],function(){
    Route::get('/hasOneDefault','EloquentController@hasOneDefault');
});

Route::group(['prefix' => 'test'],function() {
   Route::get('implode','TestController@testImplode');
   Route::get('explode','TestController@testExplode');
   Route::get('preg_match','TestController@testPregMatch');
   Route::get('preg_split','TestController@testPreg_split');
   Route::get('parse_str','TestController@testParse_str');
   Route::get('substr','TestController@testSubstr');
   Route::get('trim','TestController@testTrim');
   Route::get('strpos','TestController@testStrops');
   Route::get('strlen','TestController@testStrlen');
});
